// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

using System;

namespace SnapObjects.Data
{
    public class PointMinusOneException : Exception
    {
        public PointMinusOneException()
            : base("The current model is null, which may be caused by the current buffer pointer being -1.")
        {
        }
    }

    public class NotPropertyException : InvalidOperationException
    {
        public NotPropertyException(string name)
            : base("Property not exists or not a public property, property name: " + name)
        {
        }
    }
}
